package com.feng.exception;

import com.feng.enums.AppHttpCodeEnum;
import lombok.Data;

@Data
public class SystemException extends RuntimeException{

    private Integer code;
    private String msg;

    public SystemException(AppHttpCodeEnum appHttpCodeEnum){
        this.code = appHttpCodeEnum.getCode();
        this.msg = appHttpCodeEnum.getMsg();
    }
}
